/**
 * @author adagys
 */
package com.eu.chipin.backend;

import java.util.LinkedList;

public class Purchase {
	/*
	 * Id of the trip this purchase is part of
	 */
	private long tripId;
	/*
	 * Name of the purchase (optional)
	 */
	private String name;
	/*
	 * Total sum of the purchase
	 */
	private float totalSum;
	
	LinkedList<Buyer> buyers;
	
	LinkedList<Chipper> chippers;
	
	public Purchase(String name,
			LinkedList<Buyer> buyers, LinkedList<Chipper> chippers) {
			super();
			this.name = name;
			this.buyers = buyers;
			this.chippers = chippers;
	}
	
	public long getTripId() {
		return tripId;
	}
	public void setTripId(long tripId) {
		this.tripId = tripId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public float getTotalSum() {
		return totalSum;
	}
	public void setTotalSum(float totalSum) {
		this.totalSum = totalSum;
	}

	public LinkedList<Buyer> getBuyers() {
		return buyers;
	}

	public void setBuyers(LinkedList<Buyer> buyers) {
		this.buyers = buyers;
	}

	public LinkedList<Chipper> getChippers() {
		return chippers;
	}

	public void setChippers(LinkedList<Chipper> chippers) {
		this.chippers = chippers;
	}
}
